# 基础镜像
FROM sealos.hub:5000/nginx:1.27.3

# 作者信息
MAINTAINER huge

# 同步主机时区 && 创建目录
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone &&  \
    mkdir -p /home/ruoyi/projects/ruoyi-ui

# 指定路径
WORKDIR /home/ruoyi/projects/ruoyi-ui

# 挂载目录
VOLUME /home/ruoyi/projects/ruoyi-ui

# 复制conf文件到路径
ADD ./docker/conf/nginx.conf /etc/nginx/nginx.conf

# 复制html文件到路径
COPY ./dist /home/ruoyi/projects/ruoyi-ui
